package pl.elka.simulator.core.experiment;

import java.util.HashMap;
import java.util.Map;

import pl.elka.simulator.core.EnviromentConfiguration;
import pl.elka.simulator.core.mobilityManager.IMobilityManager;

public class ExperimentRunner {
	private RaitingCounter rCounter = new RaitingCounter();
	public ExperimentResult run(EnviromentConfiguration cfg,IMobilityManager manager, long experimentDuration){
		manager.applyEnviroment(cfg);
		long startTime = System.currentTimeMillis();
		for(long currentEpoch = 0; currentEpoch<experimentDuration; ++currentEpoch){
			manager.makeMove(1);
		}
		long elapsedTime = System.currentTimeMillis() - startTime;
		
		@SuppressWarnings("unused")
		Map<String,Float> raitings = rCounter.countRaitings(cfg, manager.getNodes(), experimentDuration, elapsedTime);
		
		return null;
	}
}
